var http = require("http.js");
  function loginByCode(code) {
    return http.post("/user/loginByWeChat",{
      code:code
    },false)
 } 
 function getUserProfile() {
   return http.get("/user/profile",{},true);
 }
 exports.loginByCode = loginByCode;
 exports.getUserProfile = getUserProfile;
 